package cn.tedu.egweibo06.common.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusCode {
    //1000 未登录 NOT_LOGIN
    //1001 登录成功 LOGIN_SUCCESS
    //1002 密码错误 PASSWORD_ERROR
    //1003 用户名错误 USERNAME_ERROR
    //1004 用户名被占用 USERNAME_ALREADY_EXISTS
    //2001 操作成功 OPERATION_SUCCESS
    //2002 操作失败 OPERATION_FAILED
    NOT_LOGIN(1000,"未登录"),
    LOGIN_SUCCESS(1001,"登录成功"),
    PASSWORD_ERROR(1002,"密码错误"),
    USERNAME_ERROR(1003,"用户名错误"),
    USERNAME_ALREADY_EXISTS(1004,"用户名被占用"),
    OPERATION_SUCCESS(2001,"操作成功"),
    OPERATION_FAILED(2002,"操作失败"),
    VALIDATE_ERROR(3000,"参数校验失败"),
    USERNAME_PASSWORD_ERROR(10300,"用户名或密码错误");
    private Integer state;
    private String message;
}
